Fix doc, new frame parameters
authorBar Magal <barmagal@gmail.com>
Mon, 6 Jul 2015 11:51:31 +0000 (14:51 +0300)
committerBar Magal <barmagal@gmail.com>
Mon, 6 Jul 2015 11:51:31 +0000 (14:51 +0300)
which-key.el

index 0230aad242d3a55163a6e3b27fa56741da15e209..6583664a2d95898f8248e3336abe6481f187060a 100644 (file)
@@ -79,7 +79,7 @@ location is top or bottom.")
   "Internal: Non-nil if which-key buffer has been setup.")
 (defvar which-key--frame nil
   "Internal: Holds reference to which-key frame.
-Used when `which-key-popup-type' is 'popup.")
+Used when `which-key-popup-type' is frame.")
 
 ;;;###autoload
 (define-minor-mode which-key-mode
@@ -236,8 +236,8 @@ need to start the closing timer."
 (defun which-key/show-buffer-new-frame (act-popup-dim)
   (let* ((height (car act-popup-dim))
          (width (cdr act-popup-dim))
-         (frame-params (delq nil (list (when (and height width) (cons 'window-height height))
-                                       (when (and height width) (cons 'window-width width))
+         (frame-params (delq nil (list (when (and height width) (cons 'height height))
+                                       (when (and height width) (cons 'width width))
                                        (cons 'minibuffer nil)
                                        (cons 'name "which-key"))))
          (alist (list (cons 'pop-up-frame-parameters frame-params)